import { createRoot } from 'react-dom/client'

import App from './App.jsx'
import 'bootstrap/dist/js/bootstrap.bundle.min.js'
// 导入bootstrap
import 'bootstrap/dist/css/bootstrap.min.css'

// import { Provider } from 'react-redux'
import { store } from './store/store'
const root = createRoot(document.getElementById('root'));
function render() {
        root.render(
                <App store={store} />
        );
}
render();

// 让 redux 和 react 建立关联
// subscribe 叫做订阅，在仓库的状态发生改变的时候
store.subscribe(render);

